package website.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import website.domain.Link;
import website.domain.Photo;
import website.domain.ResModel;

import java.util.List;

public interface PhotoService extends IService<Photo> {

    ResModel<List<Photo>> getList();

    ResModel<IPage<Photo>> getByPage(Integer current, Integer size);

    ResModel delPhoto(Integer id);

    ResModel addPhoto(Photo photo);

    ResModel<IPage<Photo>> listByUidPhotoList(Integer current, Integer size, Integer uid);
}
